Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / nonsfi / prctl_test.cc
1 /*
2  * Copyright 2014 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #include <stdio.h>
8 #include <string.h>
9
10 #include "native_client/src/include/nacl_assert.h"
11 #include "native_client/src/public/linux_syscalls/sys/prctl.h"
12
13 int main(int argc, char *argv[]) {
14   char buf[17];
15   int rc = prctl(PR_GET_NAME, (uintptr_t) buf, 0, 0, 0);
16   ASSERT_EQ(rc, 0);
17
18   puts("PASSED");
19   return 0;
20 }