mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
dtrace tests: Fix nits in some test programs
Otherwise these tests fail spuriously, depending on which compiler is installed as cc. MFC after: 2 weeks Sponsored by: Innovate UK
This commit is contained in:
1 parent
8e1e989c77
commit
fdaba0128c
2 files changed
+7
-5
No files matched your search
@@ -40,8 +40,8 @@ echo '#pragma D option aggsortkey' >> test.d
|
||||
cat > test.c <<EOF
|
||||
#include <unistd.h>
|
||||
|
||||
void
|
||||
main()
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
EOF
|
||||
|
||||
@@ -52,7 +52,7 @@ for oogle in doogle bagnoogle; do
|
||||
#include <sys/sdt.h>
|
||||
|
||||
void
|
||||
$oogle()
|
||||
$oogle(void)
|
||||
{
|
||||
DTRACE_PROBE($oogle, knows);
|
||||
}
|
||||
@@ -79,6 +79,7 @@ EOF
|
||||
fi
|
||||
|
||||
objs="$objs $oogle.o $oogle.d.o"
|
||||
echo "extern void $oogle(void);" >> test.c
|
||||
echo $oogle'();' >> test.c
|
||||
echo $oogle'$target:::{@[probefunc] = count()}' >> test.d
|
||||
done
|
||||
|
||||
@@ -35,8 +35,8 @@ cd $DIR
|
||||
cat > test.c <<EOF
|
||||
#include <unistd.h>
|
||||
|
||||
void
|
||||
main()
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
EOF
|
||||
|
||||
@@ -74,6 +74,7 @@ EOF
|
||||
fi
|
||||
|
||||
objs="$objs $oogle.o $oogle.d.o"
|
||||
echo "extern void $oogle(void);" >> test.c
|
||||
echo $oogle'();' >> test.c
|
||||
done
|
||||
|
||||
|
||||
Reference in new issue
Block a user