mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
This follow-up patch completes centralization of kselftest.h and ksefltest_harness.h includes in remaining seltests files, replacing all relative paths with a non-relative paths using shared -I include path in lib.mk Tested with gcc-13.3 and clang-18.1, and cross-compiled successfully on riscv, arm64, x86_64 and powerpc arch. [[email protected]: add selftests include path for kselftest.h] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Bala-Vignesh-Reddy <[email protected]> Suggested-by: Andrew Morton <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Reviewed-by: Wei Yang <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: David S. Miller <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Günther Noack <[email protected]> Cc: Jakub Kacinski <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mickael Salaun <[email protected]> Cc: Ming Lei <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Simon Horman <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
23 lines
406 B
C
23 lines
406 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include "kselftest_harness.h"
|
|
#include "v_helpers.h"
|
|
|
|
#define NEXT_PROGRAM "./v_exec_initval_nolibc"
|
|
|
|
TEST(v_initval)
|
|
{
|
|
int xtheadvector = 0;
|
|
|
|
if (!is_vector_supported()) {
|
|
if (is_xtheadvector_supported())
|
|
xtheadvector = 1;
|
|
else
|
|
SKIP(return, "Vector not supported");
|
|
}
|
|
|
|
ASSERT_EQ(0, launch_test(NEXT_PROGRAM, 0, xtheadvector));
|
|
}
|
|
|
|
TEST_HARNESS_MAIN
|