Add emu test for ovni_thread_require
This commit is contained in:
parent
ab42ac4557
commit
428e0b44b8
@ -18,3 +18,4 @@ test_emu(sort-cpus-by-loom.c MP)
|
||||
test_emu(sort-cpus-by-rank.c MP)
|
||||
test_emu(tracedir-subdir.c MP DRIVER "tracedir-subdir.driver.sh")
|
||||
test_emu(empty-stream.c SHOULD_FAIL REGEX "model_ovni_finish: thread .* is not dead")
|
||||
test_emu(require.c)
|
||||
|
19
test/emu/ovni/require.c
Normal file
19
test/emu/ovni/require.c
Normal file
@ -0,0 +1,19 @@
|
||||
/* Copyright (c) 2023 Barcelona Supercomputing Center (BSC)
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later */
|
||||
|
||||
#include <ovni.h>
|
||||
#include "instr.h"
|
||||
|
||||
/* Test the ovni_thread_require() function */
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
instr_start(0, 1);
|
||||
|
||||
ovni_thread_require("ovni", "1.2.0");
|
||||
|
||||
instr_end();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user