This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 19/19] btrace: honour scheduler-locking for all-stop targets


On 09/17/2015 03:09 PM, Markus Metzger wrote:
> +foreach schedlock { "replay" "on" } {
> +	with_test_prefix "schedlock-$schedlock" {
> +		gdb_test_no_output "set scheduler-locking $schedlock"
> +
> +		test_navigate
> +		test_step
> +		test_cont
> +		test_rstep
> +		test_goto_end
> +	}
>  }
>  

Indenting here looks odd compared to the rest of the file.

I'd merge in the "step" case too, like:

foreach schedlock { "replay" "on" "step" } {
    with_test_prefix "schedlock-$schedlock" {
	gdb_test_no_output "set scheduler-locking $schedlock"

	test_navigate
	test_step
	if {$schedlock == "step"} {
	    test_cont_all
	} else {
	    test_cont
	}
	test_rstep
	test_goto_end
    }
}

Otherwise looks fine to me.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]