~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to testsuite/expect/test17.15.prog.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *  Copyright (C) 2002 The Regents of the University of California.
7
7
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
8
8
 *  Written by Morris Jette <jette1@llnl.gov>
9
 
 *  LLNL-CODE-402394.
 
9
 *  CODE-OCEC-09-009. All rights reserved.
10
10
 *  
11
11
 *  This file is part of SLURM, a resource management program.
12
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
12
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
13
 *  Please also read the included file: DISCLAIMER.
13
14
 *  
14
15
 *  SLURM is free software; you can redistribute it and/or modify it under
15
16
 *  the terms of the GNU General Public License as published by the Free
37
38
        int exit_code = 0;
38
39
 
39
40
        (void) getrlimit(RLIMIT_CORE, &u_limit);
40
 
        printf("USER_CORE=%d\n", u_limit.rlim_cur);
 
41
        printf("USER_CORE=%d\n", (int)u_limit.rlim_cur);
41
42
        (void) getrlimit(RLIMIT_FSIZE, &u_limit);
42
 
        printf("USER_FSIZE=%d\n", u_limit.rlim_cur);
 
43
        printf("USER_FSIZE=%d\n", (int)u_limit.rlim_cur);
43
44
        (void) getrlimit(RLIMIT_NOFILE, &u_limit);
44
 
        printf("USER_NOFILE=%d\n", u_limit.rlim_cur);
 
45
        printf("USER_NOFILE=%d\n", (int)u_limit.rlim_cur);
45
46
#ifdef RLIMIT_NPROC
46
47
        (void) getrlimit(RLIMIT_NPROC, &u_limit);
47
 
        printf("USER_NPROC=%d\n", u_limit.rlim_cur);
 
48
        printf("USER_NPROC=%d\n", (int)u_limit.rlim_cur);
48
49
#else
49
50
        printf("USER_NPROC unsupported\n");
50
51
#endif
51
52
#ifdef RLIMIT_STACK
52
53
        (void) getrlimit(RLIMIT_STACK, &u_limit);
53
 
        printf("USER_STACK=%d\n", u_limit.rlim_cur);
 
54
        printf("USER_STACK=%d\n", (int)u_limit.rlim_cur);
54
55
#else
55
56
        printf("USER_STACK unsupported\n");
56
57
#endif