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:
@@ -40,8 +40,8 @@ echo '#pragma D option aggsortkey' >> test.d
|
|||||||
cat > test.c <<EOF
|
cat > test.c <<EOF
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
void
|
int
|
||||||
main()
|
main(void)
|
||||||
{
|
{
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ for oogle in doogle bagnoogle; do
|
|||||||
#include <sys/sdt.h>
|
#include <sys/sdt.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
$oogle()
|
$oogle(void)
|
||||||
{
|
{
|
||||||
DTRACE_PROBE($oogle, knows);
|
DTRACE_PROBE($oogle, knows);
|
||||||
}
|
}
|
||||||
@@ -79,6 +79,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
objs="$objs $oogle.o $oogle.d.o"
|
objs="$objs $oogle.o $oogle.d.o"
|
||||||
|
echo "extern void $oogle(void);" >> test.c
|
||||||
echo $oogle'();' >> test.c
|
echo $oogle'();' >> test.c
|
||||||
echo $oogle'$target:::{@[probefunc] = count()}' >> test.d
|
echo $oogle'$target:::{@[probefunc] = count()}' >> test.d
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ cd $DIR
|
|||||||
cat > test.c <<EOF
|
cat > test.c <<EOF
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
void
|
int
|
||||||
main()
|
main(void)
|
||||||
{
|
{
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
objs="$objs $oogle.o $oogle.d.o"
|
objs="$objs $oogle.o $oogle.d.o"
|
||||||
|
echo "extern void $oogle(void);" >> test.c
|
||||||
echo $oogle'();' >> test.c
|
echo $oogle'();' >> test.c
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user