blob: 685bc2d97af1cd7149aca1a96dc8eaf0ad1ab4b9 [file] [log] [blame] [edit]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <perftest/perftest.h>
#include <zircon/assert.h>
#include <zircon/testonly-syscalls.h>
namespace {
bool SyscallNullTest() {
ZX_ASSERT(zx_syscall_test_0() == 0);
return true;
}
bool SyscallManyArgsTest() {
ZX_ASSERT(zx_syscall_test_8(1, 2, 3, 4, 5, 6, 7, 8) == 36);
return true;
}
void RegisterTests() {
perftest::RegisterSimpleTest<SyscallNullTest>("Syscall/Null");
perftest::RegisterSimpleTest<SyscallManyArgsTest>("Syscall/ManyArgs");
}
PERFTEST_CTOR(RegisterTests)
} // namespace