Commit 3d0b8e45 authored by Masami Hiramatsu (Google)'s avatar Masami Hiramatsu (Google) Committed by Shuah Khan
Browse files

selftests/tracing: Fix to check awk supports non POSIX strtonum()



Check the awk command supports non POSIX strtonum() function in
the trace_marker_raw test case.

Fixes: 37f46601 ("selftests/tracing: Add basic test for trace_marker_raw file")
Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/177071726229.2369897.11506524546451139051.stgit@mhiramat.tok.corp.google.com


Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent e011853d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
# requires: trace_marker_raw
# flags: instance

check_awk_strtonum || exit_unresolved

is_little_endian() {
	if lscpu | grep -q 'Little Endian'; then
		echo 1;
+4 −0
Original line number Diff line number Diff line
@@ -173,6 +173,10 @@ check_requires() { # Check required files and tracers
    done
}

check_awk_strtonum() { # strtonum is GNU awk extension
    awk 'BEGIN{strtonum("0x1")}'
}

LOCALHOST=127.0.0.1

yield() {