~ubuntu-branches/ubuntu/gutsy/pkg-create-dbgsym/gutsy-updates

« back to all changes in this revision

Viewing changes to dhtest.tmpdirarg/crash2.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-08-17 12:47:13 UTC
  • Revision ID: james.westby@ubuntu.com-20060817124713-3ajxkd2llgf66w7m
Tags: 0.12
* Add dhtest.tmpdirarg/: Test suite check for a source package which uses
  the -P/--tmpdir= debhelper option. This recreates the current cdrtools
  FTBFS.
* dh_strip: Respect -P/--tmpdir arguments.
* pkg_create_dbgsym: Do not assume that the temporary package build
  directory is directly below debian/.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* crash.c - demo program for libcrashreport
 
2
 
 
3
   (c) 2004 Martin Pitt <martin@piware.de>
 
4
 
 
5
   This file is public domain.
 
6
*/
 
7
 
 
8
#include <stdio.h>
 
9
 
 
10
int g( int x, int y )
 
11
{
 
12
    char* f = NULL;
 
13
    //f[1] = 'a';
 
14
    int a = 1/0;
 
15
    return x+y+a;
 
16
}
 
17
 
 
18
int f( int x )
 
19
{
 
20
    return g( x, 42 );
 
21
}
 
22
 
 
23
int
 
24
main()
 
25
{
 
26
    int x;
 
27
 
 
28
    x = f(1);
 
29
    printf( "x = %i, terminating normally now.\n", x );
 
30
    return 0;
 
31
}