Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion testcases/kernel/syscalls/ustat/ustat01.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/vfs.h>

#include "lapi/syscalls.h"
#include "lapi/ustat.h"
Expand All @@ -34,11 +35,16 @@ void run(void)
static void setup(void)
{
struct stat buf;
struct statfs fs_buf;

/* Find a valid device number */
SAFE_STAT("/", &buf);

dev_num = buf.st_dev;

statfs("/", &fs_buf);
if (fs_buf.f_type == 0x9123683E) {
tst_brk(TCONF, "%s", test.tags[0].value);
}
}

static struct tst_test test = {
Expand Down
8 changes: 7 additions & 1 deletion testcases/kernel/syscalls/ustat/ustat02.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/vfs.h>

#include "lapi/syscalls.h"
#include "lapi/ustat.h"
Expand Down Expand Up @@ -50,11 +51,16 @@ void run(unsigned int test)
static void setup(void)
{
struct stat buf;
struct statfs fs_buf;

/* Find a valid device number */
SAFE_STAT("/", &buf);

root_dev = buf.st_dev;

statfs("/", &fs_buf);
if (fs_buf.f_type == 0x9123683E) {
tst_brk(TCONF, "%s", test.tags[0].value);
}
}

static struct tst_test test = {
Expand Down